using Cmpp.Client.Cmpp3Message.Utility;

namespace Cmpp.Client.Cmpp3Message {
    public class Cmpp3ConnectResponse : Cmpp3Response {
        private readonly string m_authenticatorISMG;
        private readonly uint m_status;
        private readonly byte m_version;

        public Cmpp3ConnectResponse(CmppMessageReader reader) : base(reader) {
            m_status = reader.ReadUInt32();
            m_authenticatorISMG = reader.ReadString(16);
            m_version = reader.ReadByte();
        }

        public uint Status {
            get {
                return m_status;
            }
        }

        public string AuthenticatorISMG {
            get {
                return m_authenticatorISMG;
            }
        }

        public uint Version {
            get {
                return m_version;
            }
        }
    }
}